<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
$nums=20;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='3' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.startdate.value=="")
   { alert("开始日期不能为空！");
     document.save.startdate.focus();
     return (false);
   }
   if(document.save.enddate.value=="")
   { alert("结束日期不能为空！");
     document.save.enddate.focus();
     return (false);
   }
   if(document.save.title.value=="")
   { alert("事务主题不能为空！");
     document.save.title.focus();
     return (false);
   }
   if(document.save.content.value=="")
   { alert("事务内容不能为空！");
     document.save.content.focus();
     return (false);
   }
   
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
</script>
<form name="save" method="post" action="?ac=add&do=save&fileurl=workdate">
	<input type="hidden" name="savetype" value="add" />
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center">事务预计进行时间</td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
    <tr>
      <td nowrap class="TableData" width="15%"> 开始日期：<? get_user_add_help()?></td>
      <td class="TableData">
        <input type="text" name="startdate" class="BigInput" size="15" value="<?=get_date('Y-m-d',PHP_TIME)?>" onClick="WdatePicker();"/> 时间：<select name="starth">
			    <option value="0" selected="selected"></option>
			    <?php
				for($i=1;$i<=23;$i++){
				if (strlen($i)<2){
				$j="0".$i;
				}else{
				$j=$i;
				}
				?>
				<option value="<?=$j?>" <?php if(get_date('H',PHP_TIME)==$j){?>selected="selected"<?php }?>><?=$j?></option>
				<?php } ?>
				</select>
				点
				：<select name="starti">
			    <option value="0" selected="selected"></option>
			    <?php
				for($i=1;$i<=59;$i++){
				if (strlen($i)<2){
				$j="0".$i;
				}else{
				$j=$i;
				}
				?>
				<option value="<?=$j?>" <?php if(get_date('i',PHP_TIME)==$j){?>selected="selected"<?php }?>><?=$j?></option>
				<?php } ?>
				</select>分	</td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 结束日期：<? get_user_add_help()?></td>
      <td class="TableData">
<input type="text" name="enddate" class="BigInput" size="15" value="<?=get_date('Y-m-d',PHP_TIME)?>" onClick="WdatePicker();"/> 时间：<select name="endh">
			    <option value="0" selected="selected"></option>
			    <?php
				for($i=1;$i<=23;$i++){
				if (strlen($i)<2){
				$j="0".$i;
				}else{
				$j=$i;
				}
				?>
				<option value="<?=$j?>" <?php if(get_date('H',PHP_TIME)==$j){?>selected="selected"<?php }?>><?=$j?></option>
				<?php } ?>
				</select>
				点
				：<select name="endi">
			    <option value="0" selected="selected"></option>
			    <?php
				for($i=1;$i<=59;$i++){
				if (strlen($i)<2){
				$j="0".$i;
				}else{
				$j=$i;
				}
				?>
				<option value="<?=$j?>" <?php if(get_date('i',PHP_TIME)==$j){?>selected="selected"<?php }?>><?=$j?></option>
				<?php } ?>
				</select>分
      </td>
    </tr>
	
	<tr>
      <td nowrap class="TableHeader" colspan="2"><b>&nbsp;事务信息</b></td>
    </tr>
	
    <tr>
      <td nowrap class="TableData">事务主题：<? get_user_add_help()?></td>
      <td class="TableData"><input type="text" name="title" class="BigInput" size="40" value="" />	 
      </td>
    </tr>
	<tr>
      <td nowrap class="TableData">事务内容：<? get_user_add_help()?></td>
      <td class="TableData"><textarea name="content" cols="70" rows="5" class="BigInput"></textarea> 
      </td>
    </tr>
	<tr>
      <td nowrap class="TableData">事务设置：</td>
      <td class="TableData"><input name="type" type="radio" value="私人" style="border:0;" />私人
			<input name="type" type="radio" style="border:0;" value="公开" checked="checked"/>
			公开	
      </td>
    </tr>
   
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="button" name="Submit" value="保存信息" class="BigButton" onclick="sendForm();"> 
        
      </td>
    </tr>
  </table>
</form>
</div>
</div>
 
</body>
</html>
